/**耗材模块API*/ 
import http from"@/utils/http";
//耗材仓库列表
export const warehouseList=()=>{
  return http.get("/system/materialRepository/list")
}
//耗材列表
export const materialList=(warehouseId,name)=>{
  return  http.get(`/material?warehouseId=${warehouseId}&name=${name}`)
}

//新增耗材领用 /system/assignments
export const materialApplyAdd=(data)=>{
  return http.post("/system/assignments",data)
}
//领用耗材记录 
export const materialApplyRecoad=(data)=>{
  let{userId,assignTime,materialName}=data;
  return http.get(`/system/assignments/materialListByWechat?userId=${userId}&assignTime=${assignTime}&materialName=${materialName}`)
}
